﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ProgrammersCalculator.Model;
using ProgrammersCalculator.View;

namespace ProgrammersCalculator.ViewModel
{
    public class MainViewModel
    {
        private List<Operation> operations;

        public List<Operation> Operations
        {
            get
            {
                return this.operations;
            }
        }

        public MainViewModel()
        {
            this.operations = new List<Operation>();
            this.operations.Add(new Operation("Hash Algorithms", new HashAlgorithms()));
            this.operations.Add(new Operation("Base Conversion", new NumberConversion()));
            this.operations.Add(new Operation("String Encoding", new TextEncoding()));
            this.operations.Add(new Operation("String To Binary", new StringToBinary()));
            this.operations.Add(new Operation("Encryption", new EncryptionView()));
            this.operations.Add(new Operation("Regex Tester", new RegexView()));
            this.operations.Add(new Operation("File Checksum", new HashValidatorView()));
            this.operations.Add(new Operation("Url Shortner", new UrlShortnerView()));
            this.operations.Add(new Operation("CSV To XML", new Demo()));
            this.operations.Add(new Operation("CSV To XML", new CsvToXml()));
        }
    }
}
